﻿package com.atn.edamame.tools {
  import flash.errors.IllegalOperationError;
  import flash.net.*; 
  import org.flashdevelop.utils.FlashConnect;
  [Frame(extraClass = "com.atn.edamame.googlews.WebSearch")]
  [Frame(extraClass = "com.atn.edamame.googlews.WebImageSearch")]
  [Frame(extraClass="com.atn.edamame.googlews.Translate")]
  [Frame(extraClass = "com.atn.edamame.tools.InputRepeat")]
  [Frame(extraClass = "com.atn.edamame.tools.Copy")]
  [Frame(extraClass = "com.atn.edamame.tools.Filter")]
  [Frame(extraClass = "com.atn.edamame.tools.Syndication")]
  [Frame(extraClass = "com.atn.edamame.tools.CSV")]
  public class EdamameToolFactory {
    private static var instance:EdamameToolFactory = null;
    private static var internallyCalled:Boolean = false;
    public function EdamameToolFactory() {
      if (internallyCalled) {
        internallyCalled = false;
      } else {
        throw new IllegalOperationError ("Use Singleton.getInstance() to get the instance");
      }
    }

    public static function getInstance():EdamameToolFactory  {
      if(EdamameToolFactory.instance == null) {
        internallyCalled = true;
        instance = new EdamameToolFactory();
      }
      return instance;
    }
	
	
	
  }
	
}